package com.bestescortbedsystem.entity;

import java.io.Serializable;

/**
 * ses_user_report
 * @author
 */
public class SesUserReport implements Serializable {
    /**
     * ID,主键PK
     */
    private Long reportid;

    /**
     * 用户表ID(维修人员ID)
     */
    private Long userid;

    /**
     * 维修状态:1.待修复(默认),2.修复中,3.已修复,4.无法修复
     */
    private String reportstatus;

    /**
     * 维修时间
     */
    private String reporttime;

    /**
     * 用户订单反馈表ID(故障ID)
     */
    private Long userfeedbackid;

    /**
     * 描述
     */
    private String reportdescribe;

    private SesUserFeedback sesUserFeedback;

    private SesUser sesUser;

    public SesUserFeedback getSesUserFeedback() {
        return sesUserFeedback;
    }

    public void setSesUserFeedback(SesUserFeedback sesUserFeedback) {
        this.sesUserFeedback = sesUserFeedback;
    }

    public SesUser getSesUser() {
        return sesUser;
    }

    public void setSesUser(SesUser sesUser) {
        this.sesUser = sesUser;
    }

    private static final long serialVersionUID = 1L;

    public Long getReportid() {
        return reportid;
    }

    public void setReportid(Long reportid) {
        this.reportid = reportid;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public String getReportstatus() {
        return reportstatus;
    }

    public void setReportstatus(String reportstatus) {
        this.reportstatus = reportstatus;
    }

    public String getReporttime() {
        return reporttime;
    }

    public void setReporttime(String reporttime) {
        this.reporttime = reporttime;
    }

    public Long getUserfeedbackid() {
        return userfeedbackid;
    }

    public void setUserfeedbackid(Long userfeedbackid) {
        this.userfeedbackid = userfeedbackid;
    }

    public String getReportdescribe() {
        return reportdescribe;
    }

    public void setReportdescribe(String reportdescribe) {
        this.reportdescribe = reportdescribe;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SesUserReport other = (SesUserReport) that;
        return (this.getReportid() == null ? other.getReportid() == null : this.getReportid().equals(other.getReportid()))
                && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
                && (this.getReportstatus() == null ? other.getReportstatus() == null : this.getReportstatus().equals(other.getReportstatus()))
                && (this.getReporttime() == null ? other.getReporttime() == null : this.getReporttime().equals(other.getReporttime()))
                && (this.getUserfeedbackid() == null ? other.getUserfeedbackid() == null : this.getUserfeedbackid().equals(other.getUserfeedbackid()))
                && (this.getReportdescribe() == null ? other.getReportdescribe() == null : this.getReportdescribe().equals(other.getReportdescribe()))
                && (this.getSesUser() == null ? other.getSesUser() == null : this.getSesUser().equals(other.getSesUser()))
                && (this.getSesUserFeedback() == null ? other.getSesUserFeedback() == null : this.getSesUserFeedback().equals(other.getSesUserFeedback()));


    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getReportid() == null) ? 0 : getReportid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getReportstatus() == null) ? 0 : getReportstatus().hashCode());
        result = prime * result + ((getReporttime() == null) ? 0 : getReporttime().hashCode());
        result = prime * result + ((getUserfeedbackid() == null) ? 0 : getUserfeedbackid().hashCode());
        result = prime * result + ((getReportdescribe() == null) ? 0 : getReportdescribe().hashCode());
        result = prime * result + ((getSesUserFeedback() == null) ? 0 : getSesUserFeedback().hashCode());
        result = prime * result + ((getSesUser() == null) ? 0 : getSesUser().hashCode());

        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", reportid=").append(reportid);
        sb.append(", userid=").append(userid);
        sb.append(", reportstatus=").append(reportstatus);
        sb.append(", reporttime=").append(reporttime);
        sb.append(", userfeedbackid=").append(userfeedbackid);
        sb.append(", sesUserFeedback=").append(sesUserFeedback);
        sb.append(", sesUser=").append(sesUser);
        sb.append(", reportdescribe=").append(reportdescribe);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}